# Surveyor Command Line Executeable py2exe script 

from distutils.core import setup
import py2exe

opts = {
    "py2exe": {
        "bundle_files": 1,
        "compressed": 1,
        "optimize": 1,
        "ascii": 1,

        "packages": [ "csmodules" ],

        "excludes": [ 
            "win32ui", 'w9xpopen.exe',
            "_hashlib", "hashlib", "base64",
            "unittest", "pdb", "pyexpat", "doctest",
            "httplib", "ftplib", "ssl", "_ssl", "email", 
            "optparse", "calendar",
            "mimetypes", "mimetools", "cookielib", "urlparse", "urllib", "urllib2", "gopherlib",
            "pywin", "pywin.debugger", "pywin.debugger.dbgcon", "pywin.dialogs", "pywin.dialogs.list",
            ],
        },
    }
    
consoleOpts = [
    {
    "script": "surveyor.py",
    "icon_resources": [(1, "surveyor.ico")]
    }
    ]

dataFiles = [ 
    "README.txt", 
    "LICENSE.txt",
    "surveyor.code", 
    "surveyor.examples",
    ]

setup( 
    name = "Surveyor",
    version = "5.0",
    description="Code Surveyor Command Line Measurement Tool",
    author = "Matt Peloquin",
    author_email = "matt@peloquin.com",
    url = "http://sourceforge.net/p/codesurveyor",

    options=opts,
    console=consoleOpts,
    data_files=dataFiles,
    zipfile = None,
    )
